#include "circle.h"


  void Circle::setR(int x)
{
  R = x;
}
  int Circle::getR()
{
 return R; 
}


  void Circle::setPoint(Point &x)
{
  CenterCircle = x;
}
  Point Circle::getPoint()
{
  return CenterCircle;
}

void IsInCircle(Circle &c,Point &p)
{
  int distance = 
      (c.getPoint().getX() - p.getX()) * (c.getPoint().getX() - p.getX())+
      (c.getPoint().getY() - p.getY()) * (c.getPoint().getY() - p.getY());

      int RDistance = c.getR() * c.getR();

  if(distance == RDistance)
  {
    cout << "on circle" << endl;

  }
  else if(distance < RDistance)
  {
    cout << "in circle" << endl;
  }
  else{
    cout << "out circle" << endl;
  }
      
      
}

